/**
 * @Description: enhanceApp.js
 * @Author bianpengfei
 * @create 2022/1/12 12:17
 */
import DefaultTheme from 'vitepress/dist/client/theme-default'
import Vant from 'vant'
import 'vitepress-theme-demoblock/theme/styles/index.css'
import './custom.less'
import { registerComponents } from './register-components'
import bootstrap from '../../../src/libs/bootstrap'

export default {
  ...DefaultTheme,
  NotFound: () => 'custom 404', // <- this is a Vue 3 function˙al component
  enhanceApp({ app, router, siteData }) {
    console.log(app)
    app.use(Vant)
    registerComponents(app)
    // app.use(bootstrap)
  }
}
